<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 
        TIP
        CSS 属性 backface-visibility 指定当元素背面朝向观察者时是否可见。

        属性值	说明
        visible	元素背面朝向用户时可见
        hidden	元素背面朝向用户时不可见
    -->

    <style>
        .box {
          width: 200px;
          height: 200px;
          border: 2px solid red;
          margin: 100px;
          perspective: 800px;
        }
        .item {
          width: inherit;
          height: inherit;
          background-color: khaki;
          transform-origin: bottom center;
          transition: transform 2s;
          /* 背面朝向用户时不可见 */
          backface-visibility: hidden;
        }
        .box:hover .item {
          transform: rotateX(180deg);
        }
      </style>
      <div class="box">
        <div class="item"></div>
      </div>
</body>
</html>